package com.sky.mapper;

import com.sky.entity.BusinessData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface BusinessDataMapper {
    /**
     * 根据日期查询营业数据
     * @param begin
     * @param end
     * @return
     */
    List<BusinessData> findByDate(@Param("begin") LocalDate begin,
                                  @Param("end") LocalDate end);

    /**
     * 保存数据
     * @param businessData
     */
    void saveData(BusinessData businessData);
}
